package com.xianyun.book.extension;

import com.alibaba.cola.extension.Extension;
import com.xianyun.book.common.constant.BizCode;
import com.xianyun.book.domain.user.SystemUser;
import com.xianyun.book.dto.UserRegisterCmd;
import com.xianyun.book.extensionpoint.AccountInitExtPt;
import lombok.extern.slf4j.Slf4j;

/**
 * @author macos-zyj
 */
@Slf4j
@Extension(bizId = BizCode.BIZ_ID_BOOK,useCase = BizCode.USE_CAUSE_REGISTER,scenario = BizCode.MANAGER_SCENARIO)
public class ManagerAccountInitExp implements AccountInitExtPt {

    @Override
    public SystemUser initAccount(UserRegisterCmd registerCmd) {
        log.info("业务线:{},功能模块:{},行为:{}",BizCode.BIZ_ID_BOOK,"平台管理员","注册-账户初始化");
        return null;
    }
}
